package com.sun.blog.sunblog.mapper;

import java.util.List;

import com.sun.blog.sunblog.model.Blog;

public interface BlogMapper {
	public Blog findBlogById(Long id);

	public List<Blog> findAllBlogs();

	public List<Blog> findBlogByCategoryId(Long id);

	public Integer addBlog(Blog blog);

	public Integer updateBlog(Blog blog);
	
	public Blog findPreBlog(Long id);
	
	public Blog findNextBlog(Long id);
}
